{% extends  'base.html' %}
        
{% block content %}

	<h1>{{uidp.name}}</h1>
	
	<p>Insira abaixo as informações sobre a nova solução.</p>
	
	<form action="" method="post" id="solution_form" class='form'>
		<table>
			{{ form.as_table }}
		</table>
		<script>
			$("#id_solution").attr("value", "{{ solution.name }}");
			$("#id_solution_version").attr("value", "{{ solution.solution_version }}");
			$("#id_target_version").attr("value", "{{ solution.target_version }}");
		</script>
		
		{% ifequal action "edit" %}
			<input type="button" value="Editar" class="button" id="edit_solution_button"/>
		{% else %}
			<input type="button" value="Adicionar" class="button" id="new_solution_button"/>
		{% endifequal %}
		<a href="/collections/{{collection.id}}/uidps/{{uidp.id}}" ><input type="button" value="Cancelar" class="button" id="cancel_button"/></a>
		
	</form>

{% endblock %}